-
Notifications
You must be signed in to change notification settings - Fork 52
make
improvments
#587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make
improvments
#587
Conversation
FYI it seems CI doesn't like editable installs, but I think it's fair not to have those in CI jobs anyway, hence manually installing dependencies in the workflows as opposed to leaning on the new |
I comment this on Slack (and also on the other PR), but let's please not require to install things to build the docs. It isn't necessary. My suggestion would be:
|
Not building against an installed version of the spec will also avoid potential confusion if someone has the release version of the spec installed and the docs build against that instead of the local dev version. There's no reason you'd ever want to build the docs against anything except for the local version. |
I had
That doesn't make sense considering
From #505 (comment): "I think actually we don't benefit much from magic here, as users still need to install the doc dependencies. Documenting in the README to use a single command Having Also I like the modern Concretely I'd like to utilise
Yeah that's fair, although this is a potential problem when building most docs. |
There's a difference between installing a dependency which is just a standard Python package and installing some dev scripts.
I don't see how it's a maintenance burden. I use this pattern all the time in various docs and I never need to do anything with it. Also what is the Alternatively you can set PYTHONPATH in the Makefile. The difference is that would not support running sphinx-build directly, but people generally shouldn't do that.
That's why I like the |
This sounds like a useful pattern, and one that we've used in SciPy as well for a long time without any issues. |
i.e. so you don't have to explicitly install things to build docs
Pushed 19ad87c which uses
Yep to trick autodoc so generated docs and urls are prefixed with Given this changes our GH/circleci workflows, I'll push this PR to honno#9 to see if at least the circleci preview works fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"sphinx_copybutton", | ||
"docutils<0.18", | ||
"sphinx-math-dollar", | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this is unfortunately needed because pip
is still not able to install from this dependency list without also installing the project itself.
make install
now installs dependenciesbuild
command renamed tospec
draft
command aliasingsphinx-build spec/draft/ _site/draft/
README updated accordingly.
I'm not sure on general procedure with makefiles here: I assumed
make install
shouldn't be depended upon by thedraft
andspec
commands.